package org.slf4j;

import org.slf4j.ILoggerFactory;
import org.slf4j.spi.LoggerFactoryBinder;

import com.db.mylogger.MyLoggerFactory;

public class StaticLoggerBinder implements LoggerFactoryBinder {
	
	private final static ILoggerFactory myLoggerFactory = new MyLoggerFactory();
	private final static StaticLoggerBinder THIS = new StaticLoggerBinder();
	
	public static StaticLoggerBinder getSingleton() {
		return THIS;
	}
	@Override
	public ILoggerFactory getLoggerFactory() {
		return myLoggerFactory;
	}

	@Override
	public String getLoggerFactoryClassStr() {
		return myLoggerFactory.getClass().getName();
	}

}
